<?php
include "includes/ui.php";

echo headerHTML("stock", "หน้าตรวจรับพัสดุ");
?> 
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style='margin-left:-390px;width:900px;'>

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel"><i class="icon-cog"></i> รายการตรวจรับพัสดุ </h3>
    </div>

    <form class="form-horizontal" id='frmReceive' style="margin-bottom: 0px!important;" method="POST">
		<input type='hidden' name='pid' id='pid' value=''/>
		<input type='hidden' name='mode' id='mode' value='ro'/>
        <div class="modal-body" style="overflow-y:auto;min-height:400px;">

            <div class="control-group">
                <label class="control-label" for="inputName"  style='width:0px !important;font-weight:bold;'></label>
                <div class="controls" style='margin-left:10px !important;'>
                     <span class="help-inline" style="font-weight:bold;">เลขที่ใบสั่งซื้อ &nbsp;</span>
                    <span class="help-inline label label-info" style="font-weight:normal;width:80px;" id="txtPONo_">PO</span>
                    <span class="help-inline" style="font-weight:bold;margin-left:30px;">วันที่สั่งซื้อ&nbsp;</span>
                    <span class="help-inline" style="font-weight:normal;" id="txtPurchaseDate">12/01/20</span>
                    
                    <span class="help-inline" style="font-weight:bold;margin-left:30px;">เลขที่ใบรับสินค้า &nbsp;</span>
					<span class="help-inline label label-info" style="font-weight:normal;width:90px;" id="txtRO"></span>
                    <!--input type="text" id="txtRO" required maxlength="15"   style='width:100px;' placeholder=""-->
                    <span class="help-inline label label-warning receive_ctr" style="font-weight:normal;width:75px;" id="txtRONo_">PO</span>
                    <span class="help-inline receive_ctr" style="font-weight:bold;margin-left:30px;">วันที่รับสินค้า&nbsp;</span>
                     <span class="help-inline receive_ctr" style="font-weight:normal;" id="txtReceiveDate">12/01/20</span>
                </div>
            </div>
            
             <div class="control-group">
                <label class="control-label" for="inputName"  style='width:0px !important;font-weight:bold;'></label>
                <div class="controls" style='margin-left:10px !important;'>
					<span class="help-inline" style="font-weight:bold;">ผู้ขาย &nbsp;</span>
					<span class="help-inline " style="font-weight:normal;" id="txtSupplier"></span>
                    <span class="help-inline" style="font-weight:bold;margin-left:30px;">สั่งซื้อโดย &nbsp;</span>
                    <span class="help-inline " style="font-weight:normal;width:150px;" id="txtOrderBy"></span>
                   
                    <span class="help-inline receive_ctr" style="font-weight:bold;margin-left:30px;">ตรวจรับโดย &nbsp;</span>
                    <span class="help-inline receive_ctr" style="font-weight:normal;width:150px;" id="txtReceiveBy"></span>
                </div>
            </div>
            
            <div class="well no-padding">
                
                <span class="help-inline text-center" id='Error' style="display:none;font-weight:bold;margin: auto;text-align: center;width: 100%;color: red !important;background-color: white;">กรุณาเลือกรายการ&nbsp;</span>
                <!-- Add News: WYSIWYG Edior -->
                <table class="table" id='table_detail' style='width:100% !important;'>
                    <thead>
                        <tr>
                            <th style='color:#333 !important;width:30px !important;'>#</th>
                            <th style='color:#333 !important;display:none; '>0</th>
                            <th style='color:#333 !important;width:85px !important;' class='text-center'>รหัส</th>
                            <th style='color:#333 !important;' class='text-center'>รายการ</th>
                            <th style='color:#333 !important;width:85px !important;' class='text-center'>จำนวนสั่ง</th>
                            <th style='color:#333 !important;width:85px !important;' class='text-center'>จำนวนรับ</th>
                            <th style='color:#333 !important;width:100px !important;' class='text-center'>ราคา/หน่วย</th>
                            <th style='color:#333 !important;width:100px !important;' class='text-center'>ส่วนลด</th>
                            <th style='color:#333 !important;width:100px !important;' class='text-center'>รวม</th>
                             
                        </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
                <!-- / Add News: WYSIWYG Edior -->

            </div> 
        </div>

        <div class="modal-footer">
            <button type='submit' class="btn btn-primary hidden_control" id="btnSave">ยืนยัน</button>
			<button type='submit' class="btn btn-info print_control" id="btnPrint">พิมพ์</button>
            <button class="btn" data-dismiss="modal" id='btnCancel' aria-hidden="true">ยกเลิก</button>

        </div>
    </form>

</div> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> หน้าตรวจรับพัสดุ</h3>

        </div>
        <!-- /  : Top Bar -->
        <!-- Pie: Content -->
        <div class="well no-padding" >
            <div class="span12">
                <div class="row-fluid">
                    <form class="form-horizontal" style="margin-bottom: 0px!important;">
                        <div class='span12'>
                            <div class="control-group" style='border-bottom:0px;padding-bottom:5px;'>
                                <label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>เลขที่ใบสั่งซื้อ</label>
                                <div class="controls">
                                    &nbsp;&nbsp;&nbsp;<input type="text" id="txtPO_S" placeholder="PO">
                                    <span class="help-inline" style="font-weight:bold;margin-left:70px;">เลขที่ใบรับสินค้า&nbsp;&nbsp;</span>
                                    <input type="text" id="txtRO_S" placeholder="RO">
                                </div>
                            </div>
                            <div class="control-group" style='border-bottom:0px;padding-bottom:5px;'>
                                <label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>สถานะ</label>
                                <div class="controls">
                                    &nbsp;&nbsp;
                                    <select class="no-margin span2" id='cboReceive'  style="width:210px !important;">
                                    </select> 

                                    <span class="help-inline" style="font-weight:bold;margin-left:70px;">วันที่สั่งซื้อ&nbsp;&nbsp;&nbsp;</span>
                                    &nbsp;&nbsp;&nbsp; 
                                    <div class="input-append date btndate1"   data-date="12-02-2012"  data-date-format="dd/mm/yyyy">
                                        <input class="span1" style="width:100px !important;" id='txtDateFrom_s' size="16" type="text"  readonly="">
                                        <span class="add-on"><i class="icon-calendar"></i></span>
                                    </div>
                                    &nbsp;
                                    <div class="input-append date btndate2"   data-date="12-02-2012"  data-date-format="dd/mm/yyyy">
                                        <input class="span1" style="width:100px !important;" id='txtDateTo_s' size="16" type="text"  readonly="">
                                        <span class="add-on"><i class="icon-calendar"></i></span>
                                    </div>
                                    <button class="btn btn-inverse" type='button' id='btnSearch' style='height:30px;margin-left:50px;margin-top:0px;padding-top:0px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 	
                                </div>
                            </div>
                        </div><!--end span 12-->
                    </form>
                </div>
            </div>
             <table class="data-table" id='resultData'>
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:30px !important;'>#</th>
                        <th style='display:none'>0</th>
                        <th style='color:#333 !important;width:80px !important;' class='center'>วันที่สั่ง</th>
                        <th style='color:#333 !important;width:100px !important;' class='center'>เลขที่ใบสั่งซื้อ</th>
                        <th style='color:#333 !important;' class='text-center'>ผู้สั่งซื้อ</th>
                        <th style='color:#333 !important;width:90px !important;' class='center'>วันที่รับสินค้า</th>
                        <th style='color:#333 !important;width:115px !important;' class='center'>เลขที่ใบรับสินค้า</th>
                        <th style='color:#333 !important;' class='text-center'>ผู้ตรวจรับ</th>
                        <th style='color:#333 !important;width:70px !important;' class="text-center">จำนวน</th>
                        <th style='color:#333 !important;width:85px !important;' class="text-center">จำนวนเงิน</th>
                         <th style='color:#333 !important;width:100px !important;' class="text-center">สถานะ </th>
                         <th style='display:none'>0</th>
                        <th style='color:#333 !important;width:50px !important;' class="text-center"> ตรวจรับ </th>
                        <th style='color:#333 !important;width:50px !important;' class="text-center">ยกเลิก </th>
                    </tr>
                </thead>
                <tbody>
                     
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript============================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/myScript/js_receive.js"></script>

</html>